<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!-- Header -->
<header data-am-widget="header"
	class="am-header am-header-default am-header-fixed">
	<div class="am-header-left am-header-nav">
		<a id="window-back" href="javascript:void(0)" data-am-offcanvas> <i
			class="am-icon-chevron-left"></i><span class="am-header-nav-title">拆装方法</span>
		</a>
	</div>
	<span class="am-header-title" style="font-size:1.6rem">${modelName} #${product.code}</span>
	<div class="am-header-right am-header-nav">
		
	</div>
</header>


<div class="am-g am-container">
	<div class="am-thumbnail" style="font-size:12px;">
		<img
			src="files${product.dismountingPic==null?'/':product.dismountingPic.resId}"
			alt="" style="width:100%;"/>
		<div class="am-thumbnail-caption">
			<p>${product.dismountingNotes}</p>
		</div>
	</div>
</div>
<div style="position:fixed; bottom:60px; width:100%; padding-left:20px;padding-right:20px">
	<a id="orderLink" href="javascript:void(0)" class="am-btn am-btn-success am-btn-block">确认下单</a>
</div>


<script type="text/javascript">
	$(function() {
		$('#orderLink').click(function(){
			orderSubmit('${category}');	
		});
	});
	
	function orderSubmit(category){
		var code = '${product.code}';
		location.href="mobile/selection/orderEntry?productCode="+encodeURI(encodeURI(code))
				+'&modelId='+'${modelId}'+'&category='+category;
	}
</script>